package com.orhon.smartcampus.modules.base.entity;

import com.orhon.smartcampus.modules.student.entity.Eclass;
import com.orhon.smartcampus.modules.teacher.entity.TInformation;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.*;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Setter
@Getter
@EqualsAndHashCode
@Entity
@Table(name = "base_textbooks_chapters", schema = "smartcloud", catalog = "")
public class TextbookChapters {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;
    @Column(name = "textbook_id", nullable = false)
    private Long textbookId;
    @Column(name = "parent_id", nullable = false)
    private Long parentId;
    @Column(name = "chapter_order", nullable = false)
    private Long chapterOrder;
    @Column(name = "chapter_type", nullable = true)
    private String chapterType;
    @Column(name = "mark", nullable = true)
    private String mark;
    @Column(name = "chapter_name", nullable = true)
    private String chapterName;


    @Column(name = "created_at", nullable = true)
    private Date createdAt;
    @Column(name = "updated_at", nullable = true)
    private Date updatedAt;
    @Column(name = "deleted_at", nullable = true)
    private Date deletedAt;

}
